<?php include './application/views/zhs_mobile/header.php';?>

<script type="text/javascript">
function cashed(){
	var page = parseInt(document.getElementById('cashed_page').value);
	var str = "";
	$.ajax({
		type: "GET",
		url: "/zhs_mobile/acenter/cashed_more/"+page,
		data: "",
		success: function(ret){
			if(ret.length > 0){
		        for(var i=0;i<ret.length;i++){
		        	if(i%2 != 0) str += "<tr style='background-color: rgb(237, 237, 237);'>";
			        else str += "<tr>";
					str += "<td>"+"宝付"+"</td>";
					str += "<td>"+ret[i].total+"</td>";
					str += "<td>"+ret[i].add_time+"</td>";
					str += "<td>"+ret[i].fstatus_text+"</td>";
					str += "</tr>";
		        }
				page = page+ret.length;
				document.getElementById('cashed_page').value=page;
		       	var oldstr = document.getElementById('cashed_tab').innerHTML;
		    	document.getElementById('cashed_tab').innerHTML = oldstr+str;
			}
		},
		dataType: "json"
	});
}
</script>
<section class="invbd main">
   <h3 class="logtitle">提现记录</h3>
   <table class="wqtqb mt">
     <thead>
       <tr>
         <th>方式</th>
         <th>金额</th>
         <th>充值时间</th>
         <th>状态</th>
       </tr>
     </thead>
     <tbody  id="cashed_tab">
       <?php foreach ($cash_list as $cash) {?>
        <tr>
         <td>宝付</td>
         <td>￥<?php echo $cash['total'];?></td>
         <td>  <?php echo $cash['add_time'];?> </td>
         <td>  <?php echo $cash['fstatus_text'];?> </td>
       </tr>
       <?php }?>
     </tbody>
   </table>
   <input type="hidden" id="cashed_page" value="<?php echo $page;?>"/>
	 <a href="javascript:cashed()"  class="membtn3">查看更多 &gt;&gt;</a>
	 <br/><br/><br/><br/><br/><br/>
   
</section>
<?php include './application/views/zhs_mobile/footer.php';?>
